-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
playground: add dm support for playground #2465
Conversation
Signed-off-by: Siddon Tang <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Benjamin2037: adding LGTM is restricted to approvers and reviewers in OWNERS files. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
@@ -938,8 +1054,8 @@ func (p *Playground) bootCluster(ctx context.Context, env *environment.Environme | |||
|
|||
p.bootOptions = options | |||
|
|||
// All others components depend on the pd, we just ensure the pd count must be great than 0 | |||
if options.PDMode != "ms" && options.PD.Num < 1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dmmaster. num
defaults 0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question,if we set dm as a default part for palyground maybe not a good idea,when user issue tiup playground,maybe this should not include start a dm cluster。 What do you think?@GMHDBJD @xhebox
Yes, I don't think it should be included here. And it did not break playground only because PD.Num >= 1
in normal cases...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dmmaster.num defaults 0, pd.num defaults 1, so tiup playground start a tidb cluster default, but I think we should allow user start a dm cluster without tidb/pd/tikv, so here change the logic to allow follow command.
tiup-playground nightly --dm-master 1 --dm-worker 1 --db 0 --kv 0 --pd 0 --tiflash 0
colorCmd.Printf("tiup dmctl --master-addr %s\n", strings.Join(endpoints, ",")) | ||
} | ||
|
||
if len(p.pds) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why mention pd here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we can start a dm cluster without pd, so allow pd to be zero
tiup-playground nightly --dm-master 1 --dm-worker 1 --db 0 --kv 0 --pd 0 --tiflash 0
[LGTM Timeline notifier]Timeline:
|
What problem does this PR solve?
support DM in playground. ref #2464
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes
Release notes: